package tech.swh.ssm.intercaptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class Sylntercaptor extends HandlerInterceptorAdapter{

	public boolean preHandle(HttpServletRequest request,HttpServletResponse response,Object handle) {

		Object obj=request.getSession().getAttribute("user");
		if (obj==null) {
			return false;
		}
		return true;
	}

}
